<?php
$this->registerCssFile('@web/css/backstage.css',['depends'=>['app\assets\AppAsset']]);
use yii\helpers\Url;
// var_dump($admininfo);die;
?>
<style>
    input{
        width: 100px;
    }
</style>
<div class="main">
    <!--右侧内容-->
    <div class="cont">
        <div class="title">管理员概况</div>
        <div class="details">
            <div class="details_operation clearfix">
                <div class="bui_select">
                    <input type="button" value="添&nbsp;&nbsp;加" class="add" onclick="location.href='./?r=admin/add';">
                </div>
                <div class="fr">
                    <div class="text">
                        <span>日期：</span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1"><?= date("Y-m-d "); ?></option>
<!--                                <option value="1">测试内容</option>-->
<!--                                <option value="1">测试内容</option>-->
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1">Whatever is worth doing is worth doing well.</option>
<!--                                <option value="1">测试内容</option>-->
<!--                                <option value="1">测试内容</option>-->
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
<!--                        <input type="text" value="" class="search">-->
                    </div>
                </div>
            </div>
             <table class="table" cellspacing="0" cellpadding="0">
                 <thead>
                 <tr>
                     <th> </th>
                     <th width="15%">id</th>
                     <th width="35%">用户名</th>
                     <th width="25%">密码</th>
                     <th>操作</th>
                 </tr>
                 </thead>
                 <tbody
                 <tr>
                     <form method="post" action="./?r=admin/add">
                         <td><input type="checkbox" name="class" value="2">框勾选上就是超级管理员
                         </td>
                         <td><input type="text" placeholder="id,可以不填写" name="id">
                         </td>
                         <td><input type="text" placeholder="用户名" name="username">
                         </td>
                         <td><input type="text" placeholder="密码" name="password">
                         </td>
                         <td><input type="submit" class="btn"><input type="reset" class="btn">
                         </td>
                         <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
                     </form>
                 </tr>
                 </tbody>
             </table>
         </div>
       </div>
  </div>